package routers

import "gvb_server/api"

func (routerGroup RouterGroup) MenuRouter() {
	menuApi := api.ApiGroupApp.MenuApi
	routerGroup.POST("/menus", menuApi.MenuCreateView)
	routerGroup.GET("/menus", menuApi.MenuListView)
	routerGroup.GET("/menu_names", menuApi.MenuNameListView)
	routerGroup.PUT("/menus/:id", menuApi.MenuUpdateView)
	routerGroup.DELETE("/menus", menuApi.MenuRemoveView)
	routerGroup.GET("menus/:id", menuApi.MenuDetailView)
}
